n = int(input())
a = list(map(int, input().split()))
m = int(input())

s = set()
s.add(0)
for i in a:
    for j in list(s):
        s.add(i + j)
        s.add(abs(i - j))

if m in s:
    print("Yes")
else:
    print("No")